<%@page import="com.xbk.jtable.ui.jForm"%>
<%@page import="com.xbk.jtable.ui.jTableUtil"%>
<%@page import="com.xbk.platform.DataMap"%>
<%@page import="com.xbk.util.StringUtil"%>
<%@page import="com.xbk.jtable.ui.Widget"%>
<%@page import="com.xbk.jtable.ui.jTable"%>
<%@page import="com.xbk.platform.DaoUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/Include/include.jspf"%>
<style type="text/css">
</style>
<%
	DaoUtil du = ConnectionMananger.getDaoUtil();
	String sInterfaceID = request.getParameter("interfaceid");
	
	String jtableData = "";
	DataMap inter = new DataMap(); 
	
	String sSql = "SELECT INPUTDATE,SERINO,ORG,CONTRACTNO,CLASS,CUSTID,BEGINDATE,ENDDATE,REPAYDATE,MATURITY,"+
				  "SUBJECT,TYPE,BLOCID,BALANCE,BELONGORG FROM CLASS5 WHERE BELONGORG = 'me' and rownum < 5";
	jTable jtable = new jTable(du);
	jtable.setKeyCols("USERID");
	jtable.setRelativeTable("CLASS5");
	jtable.initBySql(sSql);
	jtable.setHeader(du.getCols(sSql));
	jtableData = jtable.getHtml();
	
	du.close();
%>
</head>
<body>
<!-- top -->
<div id="top">
	<%@include file="/top.jsp" %>
</div>
<!-- content -->
  	<div id="jtableContainer" class="mg20 mt100 mb0"></div>
</body>
<script type="text/javascript">
$(function() {
	$(function(){
		var jtable = new jDcp.web.Table();
		jtable.parse("<%=jtableData %>");
		jtable.appendTo("jtableContainer");
		var button = {};
		button.text = "规则校验";
		button.cls = "btn";
// 		button.fn = function(){alert(jtable.attr("key"));};
		button.img = "icon-check";
		jtable.addButton(button);
		jtable.hideCols({col:"INTERFACEID"});
		$(".jtable-container").css("height",(($(window).height() - $(".jtable-container").offset().top) - 25) + "px");
		
	});
});
</script>
</html>